﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace DSTMEETING.Web.Api
{
    public class MeetingController : ApiController
    {
        [HttpGet]
        public Meeting Get(Guid id)
        {
            var meeting = new Meeting();
            meeting.Name = "meeting1";
            meeting.Creator = "creator1";
            return meeting;
        }

        /// <summary>
        /// 创建会议
        /// </summary>
        /// <param name="meeting"></param>
        /// <returns></returns>
        [HttpPost]
        public bool Create(Meeting meeting)
        {
            return true;
        }
    }



    public class Meeting
    {
        /// <summary>
        /// 会以名称
        /// </summary>
        public string Name { get; set; }
        public string Creator { get; set; }
    }
}
